// File generated from our OpenAPI spec by Stainless.

package com.metest.api.services.async

import com.metest.api.core.ClientOptions
import com.metest.api.core.RequestOptions
import com.metest.api.core.http.HttpResponseFor
import com.metest.api.models.store.StoreGetInventoryParams
import com.metest.api.models.store.StoreGetInventoryResponse
import com.metest.api.services.async.store.OrderServiceAsync
import java.util.concurrent.CompletableFuture
import java.util.function.Consumer

interface StoreServiceAsync {

    /**
     * Returns a view of this service that provides access to raw HTTP responses for each method.
     */
    fun withRawResponse(): WithRawResponse

    /**
     * Returns a view of this service with the given option modifications applied.
     *
     * The original service is not modified.
     */
    fun withOptions(modifier: Consumer<ClientOptions.Builder>): StoreServiceAsync

    fun order(): OrderServiceAsync

    /** Returns a map of status codes to quantities */
    fun getInventory(): CompletableFuture<StoreGetInventoryResponse> =
        getInventory(StoreGetInventoryParams.none())

    /** @see getInventory */
    fun getInventory(
        params: StoreGetInventoryParams = StoreGetInventoryParams.none(),
        requestOptions: RequestOptions = RequestOptions.none(),
    ): CompletableFuture<StoreGetInventoryResponse>

    /** @see getInventory */
    fun getInventory(
        params: StoreGetInventoryParams = StoreGetInventoryParams.none()
    ): CompletableFuture<StoreGetInventoryResponse> = getInventory(params, RequestOptions.none())

    /** @see getInventory */
    fun getInventory(requestOptions: RequestOptions): CompletableFuture<StoreGetInventoryResponse> =
        getInventory(StoreGetInventoryParams.none(), requestOptions)

    /** A view of [StoreServiceAsync] that provides access to raw HTTP responses for each method. */
    interface WithRawResponse {

        /**
         * Returns a view of this service with the given option modifications applied.
         *
         * The original service is not modified.
         */
        fun withOptions(
            modifier: Consumer<ClientOptions.Builder>
        ): StoreServiceAsync.WithRawResponse

        fun order(): OrderServiceAsync.WithRawResponse

        /**
         * Returns a raw HTTP response for `get /store/inventory`, but is otherwise the same as
         * [StoreServiceAsync.getInventory].
         */
        fun getInventory(): CompletableFuture<HttpResponseFor<StoreGetInventoryResponse>> =
            getInventory(StoreGetInventoryParams.none())

        /** @see getInventory */
        fun getInventory(
            params: StoreGetInventoryParams = StoreGetInventoryParams.none(),
            requestOptions: RequestOptions = RequestOptions.none(),
        ): CompletableFuture<HttpResponseFor<StoreGetInventoryResponse>>

        /** @see getInventory */
        fun getInventory(
            params: StoreGetInventoryParams = StoreGetInventoryParams.none()
        ): CompletableFuture<HttpResponseFor<StoreGetInventoryResponse>> =
            getInventory(params, RequestOptions.none())

        /** @see getInventory */
        fun getInventory(
            requestOptions: RequestOptions
        ): CompletableFuture<HttpResponseFor<StoreGetInventoryResponse>> =
            getInventory(StoreGetInventoryParams.none(), requestOptions)
    }
}
